GetExpireDurationTimeRemaining

SoftwareShield ClientProtector COM Component > ClientProtector (SSCProtector) Reference > GetExpireDurationRemaining

## GetExpireDurationRemaining

The GetExpireDurationRemaining function retrieves the expire duration time remaining in an expire duration license.

###### Syntax

HRESULT GetExpireDurationRemaining ( long * SecondsRemaining, VARIANT_BOOL ForceUpdate, VARIANT_BOOL * IsExpireDurationType ) ;

###### Parameters

SecondsRemaining

[OUT] This is (a pointer to) a numeric value that represents the remaining seconds before the license expires

ForceUpdate

[IN] If this boolean value is set to true, it will force the license to update which will return the immediate value of the duration remaining. Otherwise, the returned value will represent the time remaining from the last update. An non-forced update occurs at the time interval that is defined in your license.

IsExpireDurationType

[OUT] This is (a pointer to) a boolean value which returns if the license is an expire duration type.

###### Remarks

The GetExpireDurationRemaining function retrieves the expire duration time remaining in an expire duration license.

###### Return Value

As with all COM function calls they return an HRESULT. HRESULT is a data type that is a 32-bit error or warning code. Check your compilers documentation for information on interpreting the HRESULT value.

###### Function Information

Exposed By Interface: | "ISSCProtector"
Exposed In COM Server Binaries: | "SSCProt.dll" and "SSCProtD.dll"